<?php
	require_once 'FlatFeature.php';

	$type_room = $_POST['type'];

	$doFlat = new FlatFeature(); 
	
	switch($type_room){
		case '2': 
				$result = $doFlat->getTwoRoom(); 
				break;
		case '3': 
				$result = $doFlat->getTheeRoom(); 
				break;
	}
	
	die(json_encode($result));
	

?>